<template>
    <div>
        <p>模型二</p>
        <el-button @click="handleClick">-</el-button>
        <span>{{$store.state.count}}</span>
    </div>
</template>
<script>
    export default {
        name: 'modelTwo',
        created (){},
        methods: {
            handleClick (){
                this.$store.commit("subCount");
            }
        }
    }
</script>
<style scoped>
    
</style>
